<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
	<table border="1px">
		<th>员工姓名</th>
		<th>员工性别</th>
		<th>员工年龄</th>
		<th>所属部门</th>
		<th>所在职务</th>
		<th>工龄</th>
		<th>修改操作</th>
		<th>删除操作</th>
		<%!int count = 0;%>
		<c:forEach items="${lists}" var="list" step="1">
			<tr>
				<td>${list.name}</td>
				<td>${list.sex}</td>
				<td>${list.age}</td>
				<td>${list.department}</td>
				<td>${list.type}</td>
				<td>${list.year}</td>
				<td><a href="/demo/UpdateEmployee?empid=${list.id}">修改</a></td>
				<td><a href="/demo/DeleteEmployee?empid=${list.id}">删除</a></td>
			</tr>
		</c:forEach>
		<tr>
			<a href="addEmployee.jsp">新增员工信息</a>
		</tr>
	</table>
</body>
</html>